//
//  DatabaseSingleton.h
//  UI-21-豆豆豆瓣
//
//  Created by dllo on 15/11/7.
//  Copyright © 2015年 Wang Hao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Movie.h"
#import "Users.h"

@interface DatabaseSingleton : NSObject

+(instancetype)shareDatabaseSingleton;

-(void)openDB;
-(void)insertData:(Movie *)movie;
-(void)insertData:(Movie *)movie name:(NSString *)named;
-(NSMutableArray *)selectData;
-(NSMutableArray *)selectData:(NSString *)named;
-(void)dropTable;
///用户
-(void)insertUser:(Users *)userO;
-(Users *)selectUser:(NSString *)nameUser;
//收藏
-(void)insertcollect:(Movie *)movie name:(NSString *)nameUser;
-(NSMutableArray *)selectcollect:(NSString *)nameUser;
-(void)deletecollect:(NSString *)release_date;
-(Movie *)selectData1:(NSString *)named;

@end
